<link href="/public/css/them1/Base.css" type="text/css" rel="stylesheet" />
<link href="/public/css/them1/News.css" type="text/css" rel="stylesheet" />
<link href="/public/css/them1/Menu-2.css" type="text/css" rel="stylesheet" />
<link href="/public/css/them1/Banner.css" rel="stylesheet" type="text/css"/>

<center>
    <div class="div_content_all">
        <?php include dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR.'home'.DIRECTORY_SEPARATOR.'top_menu2.php'; ?>
        <div class="clear"></div>

        <div id="breadcrumb">
            <div class="clear">
            </div>
        </div>

        <div id="content">

            <div class="bortop">
            </div>
            <div class="borleft">
                <div class="borright">
                    <div class="bgwhite">
                        <div style="height: 4px;">
                        </div>
                        <div id="left-col">
                            <div id="newsdetail">
                                <div class="Header">
                                    <div class="breadcrumb fl">
                                        <a class="Home" href="<?php echo $root_page;?>">Trang chủ</a> > <a href="<?php echo $root_page;?>/tintuc/">Tin tức</a>
                                                <?php foreach ($aryNewsParentCateogry as $key => $value) {?>
                                                > <a href="/tin/<?php echo $value['news_category_id'];?>/<?php echo $value['news_category_filter'];?>.html"><?php echo $value['news_category_name'];?></a>
                                                <?php } ?>
                                    </div>
                                    <div class="functions fr"></div>
                                </div>
                                <div class="news_header">
                                    <div class="news_title">
                                        <ul>
                                            <li class="news_title_fl">
                                                <?php echo $aryNews['news_title'];?>
                                            </li>
                                            <li class="news_time_update">
                                                Cập nhật :<?php echo date('d/m/Y', strtotime($aryNews['news_updated_date']));?>
                                            </li>
                                        </ul>
                                    </div>
                                </div>
                                <div class="clear"></div>
                                <div class="description"><?php echo $aryNews['news_content'];?></div>
                                <div style="height: 40px;"></div>
                                <div class="description">
                                    <div>CÁC TIN LIÊN QUAN</div>
                                    <ul>
                                        <?php foreach ($arySameNews as $key => $value) {?>
                                        <li>
                                            <a href="/chitiet/<?php echo $value['news_id'];?>/<?php echo $value['news_title_filter'];?>.html">
                                                <?php echo $value['news_title'];?>
                                                <font color='#ababab'>(<?php echo date('d/m/Y', strtotime($value['news_updated_date']))?>)</font>
                                            </a>
                                        </li>
                                        <?php } ?>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <div id="right-col">
                            <div id="mostread" class="Box1">

                                <div class="Header">
                                    Bài đọc nhiều nhất
                                </div>
                                <div class="Content">
                                    <ul>
                                        <?php foreach ($aryTopViews as $key => $value) {?>
                                        <li>
                                            <a href="/chitiet/<?php echo $value['news_id'];?>/<?php echo $value['news_title_filter'];?>.html">
                                                <?php echo $value['news_title'];?>
                                            </a>
                                        </li>
                                        <?php } ?>
                                    </ul>
                                </div>
                            </div>


                            <div id="mostread" class="Box1">
                                <div class="Content">

                                    <span></span>
                                </div>
                            </div>

                            <div class="height"></div>

                            <div id="mostread" class="Box1">
                                <div class="Header">
                                    Sản phẩm khuyến mại
                                </div>
                                <div class="Content">
        <table cellspacing="0" cellpadding="0" border="0" style="border-width:0px;border-collapse:collapse;">
	<tbody>
            <tr>
                <?php $i = 1; foreach ($aryPromProduct as $key => $value) {?>
                    <td valign="top">
                        <div class="item">
                            <div class="image">
                                <div class="divvalign">
                                    <div class="divvalign2">
                                        <a href="/product/<?php echo $value['product_id'];?>/<?php echo $value['product_title_filter'];?>.html">
                                            <img width="85" height="85" src="<?php echo $value['product_main_image'];?>">
                                        </a>
                                    </div>
                                </div>
                            </div>
                            <div class="name">
                                <a href="/product/<?php echo $value['product_id'];?>/<?php echo $value['product_title_filter'];?>.html"><?php echo $value['product_title'];?></a>
                            </div>
                        </div>
                    </td>
                    <?php echo ($i % 2 == 0) ? '</tr><tr>' : '';?>
                <?php $i++; } ?>
                </tr>
            </tbody>
        </table>
    </div>

                            </div>
                            <div id="mostread" class="Box1">
                                <div class="Header">
                                    Sản phẩm mới
                                </div>
                                    <div class="Content">
        <table cellspacing="0" cellpadding="0" border="0" style="border-width:0px;border-collapse:collapse;">
	<tbody>
            <tr>
                <?php $i = 1; foreach ($aryNewProduct as $key => $value) {?>
                    <td valign="top">
                        <div class="item">
                            <div class="image">
                                <div class="divvalign">
                                    <div class="divvalign2">
                                        <a href="/product/<?php echo $value['product_id'];?>/<?php echo $value['product_title_filter'];?>.html">
                                            <img width="85" height="85" src="<?php echo $value['product_main_image'];?>">
                                        </a>
                                    </div>
                                </div>
                            </div>
                            <div class="name">
                                <a href="/product/<?php echo $value['product_id'];?>/<?php echo $value['product_title_filter'];?>.html"><?php echo $value['product_title'];?></a>
                            </div>
                        </div>
                    </td>
                    <?php echo ($i % 2 == 0) ? '</tr><tr>' : '';?>
                <?php $i++; } ?>
                </tr>
            </tbody>
        </table>
    </div>
                            </div>


                        </div>
                        <div class="clear">
                        </div>
                    </div>
                </div>
            </div>
            <div class="borbottom"></div>
        </div>
    </div>
    <div class="clear">
    </div>
<?php include dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR.'home'.DIRECTORY_SEPARATOR.'home_footer.php'; ?>
</center>

